package com.markerhub.service.impl;

import com.markerhub.common.vo.ClassVO;
import com.markerhub.common.vo.ClassmateVO;
import com.markerhub.mapper.StudentClassMapper;
import com.markerhub.service.StudentClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentClassServiceImpl implements StudentClassService {

    @Autowired
    private StudentClassMapper studentClassMapper;


    @Override
    public List<ClassVO> getStudentClasses(Long studentId) {
        return studentClassMapper.selectStudentClasses(studentId);
    }

    @Override
    public List<ClassmateVO> getClassmates(Integer classId, Long studentId) {
        return studentClassMapper.selectClassmates(classId);
    }
}
